package router

import (
	"github.com/gin-gonic/gin"
	"seat-service/api"
)

type ReservationRouter struct {
}

func (*ReservationRouter) reservationGroup(Router *gin.RouterGroup) *gin.RouterGroup {
	reservation := Router.Group("reservation")
	reservationApi := api.ReservationApi{}
	{
		//查询预约数据
		reservation.GET("", reservationApi.QueryReservation)

		//条件查询预约数据
		reservation.GET("condition", reservationApi.QueryConditionReservation)

		//取消预约
		reservation.POST("cancel", reservationApi.CancelReservation)

	}
	return reservation
}
